home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 August / The Sunday Times - The Month 2004-08.iso / pc / engine / swf / child_unlock.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2004-05-05  |  520 b   |  25 lines

  1. CODE = "TMN812";
  2. stop();
  3. fld.onSetFocus = function()
  4. {
  5.    this.text = "";
  6.    this.onSetFocus = null;
  7. };
  8. btn_ok.onRelease = function()
  9. {
  10.    var _loc1_ = _parent;
  11.    if(fld.text.toUpperCase() == CODE)
  12.    {
  13.       trace("Child Lock unlock code CORRECT");
  14.       _loc1_.connTardisSend.onStatus = function(infoObject)
  15.       {
  16.          _parent.dialogsHide();
  17.       };
  18.       _loc1_.connTardisSend.send("Tardis","childlock_unlock");
  19.    }
  20. };
  21. btn_cancel.onRelease = function()
  22. {
  23.    _parent.dialogsHide();
  24. };
  25.